
def my_len(data):
    count = 0
    for i in data:
        count += 1
    print(f"字符串{data}一共有{count}个字符")


str1 = "computer"
str2 = "Hello world"
str3 = "really"

my_len(str1)
my_len(str2)
my_len(str3)

